org.eclipse.vtp.framework.databases.configurations
Class JdbcDatabaseConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.databases.configurations.DatabaseConfiguration
      extended by org.eclipse.vtp.framework.databases.configurations.JdbcDatabaseConfiguration
All Implemented Interfaces:
IConfiguration, DatabaseConstants

public class JdbcDatabaseConfiguration
extends DatabaseConfiguration

A configuration for a database connection factory that uses the JDBC driver manager.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.databases.configurations.DatabaseConstants
NAME_COLUMN, NAME_COMPARISON, NAME_CRITERIA, NAME_DATABASE, NAME_DRIVER, NAME_JDBC_DATABASE, NAME_JNDI_DATABASE, NAME_MAPPING, NAME_NAME, NAME_PASSWORD, NAME_QUERY, NAME_RESULT_CARDINALITY, NAME_RESULT_LIMIT, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TABLE, NAME_TIMEOUT, NAME_TYPE, NAME_URI, NAME_URL, NAME_USERNAME, NAME_VALUE, NAMESPACE_URI
 
Constructor Summary
JdbcDatabaseConfiguration()
          Creates a new JdbcDatabaseConfiguration.
 
Method Summary
 java.lang.String getDriver()
          Returns the name of the driver class.
 java.lang.String getUrl()
          Returns the URL to connect with.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setDriver(java.lang.String driver)
          Sets the name of the driver class.
 void setUrl(java.lang.String url)
          Sets the URL to connect with.
 
Methods inherited from class org.eclipse.vtp.framework.databases.configurations.DatabaseConfiguration
addTable, getName, getPassword, getTables, getUsername, removeTable, setName, setPassword, setUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcDatabaseConfiguration

public JdbcDatabaseConfiguration()
Creates a new JdbcDatabaseConfiguration.

Method Detail

getDriver

public java.lang.String getDriver()
Returns the name of the driver class.

Returns:
The name of the driver class.

setDriver

public void setDriver(java.lang.String driver)
Sets the name of the driver class.

Parameters:
driver - The name of the driver class.

getUrl

public java.lang.String getUrl()
Returns the URL to connect with.

Returns:
The URL to connect with.

setUrl

public void setUrl(java.lang.String url)
Sets the URL to connect with.

Parameters:
url - The URL to connect with.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Overrides:
load in class DatabaseConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Overrides:
save in class DatabaseConfiguration
Parameters:
configurationElement - The element to save the configuration to.